var options = { 
	url:"{$url}", 
	type:"POST",
	dataType: 'json',
//	beforeSubmit:function(){
//		var textarea = $("textarea").val();
//		if(textarea==""){
//			alert("请填写完整");
//		}
//		return false;
//	},
	success: function(data) {  
//		var obj = eval('('+data+')');
		alert(data['msg']);
}}; 

	function displaydata(value) {
		var path = "{$urllist}&fresh=" + Math.random();
		var json = {
			val : value
		};
		$("#display").empty();
		$("#display").append('<img src = "themes/1717da/images/loading_big.gif">');
		$.getJSON(path,json,function(json){
			var jsonhtml = "";
			for(i=0;i<json.total;i++){
				//alert(json.data[i].winposttime);
				jsonhtml +="<dl class='remark_detail'>";
				jsonhtml +="<dt><img src='themes/1717da/images/download_img04.jpg' width='58' height='58' /></dt>";
				jsonhtml +="<dd>";
				jsonhtml +="<h4><a href=''>"+json.data[i].username+"</a></h4>";
				if(json.data[i]['type']=="gamehall"){
					jsonhtml +="<ul class='contList clearfix'>";
					jsonhtml +="<li><img src='themes/1717da/images/star"+json.data[i].val_4+".gif' /></li>";
					jsonhtml +="<li>环境：<span>"+json.data[i]['val_1']+"</span></li>";
					jsonhtml +="<li>规模：<span>"+json.data[i]['val_2']+"</span></li>";
					jsonhtml +="<li>服务：<span>"+json.data[i]['val_3']+"</span></li>";
					jsonhtml +="</ul>";
				}
				jsonhtml +="<p>"+json.data[i].connect+"</p>";
				jsonhtml +="<p class='date'>"+json.data[i].winposttime+"   "+json.data[i].title+"</p>";
				jsonhtml +="</dd>";
				jsonhtml +="</dl>";
		}
		$("#display").html(jsonhtml);
	});
}
	function onclicks(value){
		var json={val:value};	
		var url ="{$purl}";
		$("#pagenavi").empty();
		$.post(url,json,function (data){
		var obj= eval('('+data+')');
		var contents = '';
		$.each(obj,function (i) {
			contents +=obj['input'];
		});
			$("#pagenavi").html(contents);
		})
		displaydata(value);
}